home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: overloading []
- Date: 17 Jan 1996 00:28:21 GMT
- Organization: self-employed
- Message-ID: <4dhfr5$u9c@news.bridge.net>
- References: <4dgjbl$6i3@news1.goodnet.com>
- NNTP-Posting-Host: ppp-mia2-81.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
- Geoff;
-
- >> Now the only way I can use the subscript operator is to call it
- >> like this
-
- >> f->operator[](1) = 10;
-
-
- Overloaded operators are generally no fun when you're dealing with
- pointers to objects. How about this,though;
-
- (*f)[1]
-
-
- David
-
-
-